for a in range(100, 1000):
    if a % 10 == a // 100 % 10:
        print(a)
